﻿using MongoDAO.Providers;
using MongoDB.Driver;
using NUnit.Framework;

namespace MongoDAOTest
{
    [TestFixture]
    public abstract class TestBase
    {
        public MongoDatabase database;
        private MongoDatabaseProvider _databaseProvider;

        [TestFixtureSetUp]
        public void FixtureSetUp()
        {
            _databaseProvider = new MongoDatabaseProvider("MongoTestServerSettings");
            database = _databaseProvider.GetDatabase();
            database.Drop();
        }

        [SetUp]
        public virtual void SetUp()
        {
            
        }

        [TearDown]
        public virtual void TearDown()
        {
            
        }
        
        [TestFixtureTearDown]
        public void FixtureTearDown()
        {
        }
    }
}
